﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
/*
using java.util;
using java.lang;

//using MyExtensions33 = AlexTranslator.MyExtensions;
using boolean = System.Boolean;



namespace AlexTranslator
{
//#if VJSInstalled
    public static class MyExtensions
    {
        
        
        public static string toString(this StringBuffer str)
        {
            return str.ToString();
        }

        public static bool equals(this String str1, String str2)
        {
            return str1==str2;
        }
        
    } 

    class DelimitedString
    {
        
        public static int END = -1;

        private String [] segments = null;
        private String[] padding = null;

        public DelimitedString(String source)
        {           
            

                StringTokenizer st = new StringTokenizer(source, " \t\n\r\f", false);

                segments = new String[st.countTokens()];
                padding = new String[segments.Length];

                int i = 0;
                while(st.hasMoreTokens())
                {
                        segments[i] = st.nextToken();
                        //if (st.hasMoreTokens())
                                //padding[i] = st.nextToken();

                        //if (padding[i] == null)
                                //padding[i] = "";

                        i++;
                }
        }

        public String getSegment(int i)
        {
            if (i < segments.Length) return segments[i];
         else return null;
        }

        public String getSegmentsBetween(int start, int end)
        {
         StringBuffer sb = new StringBuffer();
            

         if(end == END)
             end = segments.Length;

         for(int i = start;i < end; i++)
         {
                 if(i > start) sb.append(" ");
                 sb.append(segments[i]);
         }

         return sb.toString();
        }
         
    }
//#endif


}

*/